package com.bub.pay.api.controller;

import com.bub.pay.core.entity.vo.merchant.BankVo;
import com.bub.pay.core.manager.system.SysBankManager;
import com.bub.pay.framework.wrap.annotation.SysLog;
import com.bub.pay.framework.wrap.annotation.SysLogType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 公用接口
 */
@SysLogType("公用接口")
@RestController
@RequestMapping("/agent/common/")
public class CommonController {

    @Resource
    private SysBankManager sysBankManager;

    /**
     * 获取银行列表
     */
    @SysLog("获取银行列表")
    @PostMapping("bank/queryBankOptionList")
    public Object queryBankOptionList(){
        return sysBankManager.queryBankOptionList(new BankVo());
    }

}
